﻿
using Core.UIItems;
using Core.UIItems.ListBoxItems;
using Core.UIItems.WindowItems;
namespace Airborne.ScrumPoker.Presentation.AutomationTests.Artifacts
{
    public partial class ScrumPokerProjectOwner 
    {
        private Window OwnerScreen{ get; set;}

        public ScrumPokerProjectOwner(Core.UIItems.WindowItems.Window window)
        {
            OwnerScreen = window;
        }

        public TextBox TimerTextBox
        {
            get
            {
                return OwnerScreen.Get<TextBox>("textBoxTimer");
            }
        }


        public WPFComboBox TeamFoundationServerComboBox
        {
            get{
                return OwnerScreen.Get<WPFComboBox>("comboBoxTeamFoundationServer");
            }
        }

        public WPFComboBox TeamProjectsComboBox
        {
            get
            {
                return OwnerScreen.Get<WPFComboBox>("comboBoxTeamProjects");
            }
        }

        public Button ConnectToTeamFoundationButton
        {
            get
            {
                return OwnerScreen.Get<Button>("buttonConnectToTeamFoundation");
            }
        }

        public TextBox EstimatedEffortTextBox
        {
            get
            {
                return OwnerScreen.Get<TextBox>("textBoxEstimatedEffort");
            }
        }


        public Button StartTimerButton
        {
            get
            {
                return OwnerScreen.Get<Button>("buttonStartTimer");
            }
        }

        public Button StopTimerButton
        {
            get
            {
                return OwnerScreen.Get<Button>("buttonStopTimer");
            }
        }

        public Button ShowVotesTimerButton
        {
            get
            {
                return OwnerScreen.Get<Button>("buttonShowVotes");
            }
        }

        public Button ResetVotesTimerButton
        {
            get
            {
                return OwnerScreen.Get<Button>("buttonResetVotes");
            }
        }

        public Button SaveWorkItemButton
        {
            get
            {
                return OwnerScreen.Get<Button>("buttonSaveWorkItem");
            }
        }

        public TextBox WorkItemCommentTextBox
        {
            get
            {
                return OwnerScreen.Get<TextBox>("textBoxWorkItemComment");
            }
        }

        public ListView WorkItemsListView
        {
            get
            {
                return OwnerScreen.Get<ListView>("listViewWorkItems");
            }
        }

        public WPFLabel WorkItemTitleTextBlock
        {
            get
            {
                return OwnerScreen.Get<WPFLabel>("textBlockWorkItemTitle");
            }
        }

        public Button SelectNextWorkItemButton
        {
            get
            {
                return OwnerScreen.Get<Button>("buttonNextWorkItem");
            }
        }

        public Button SelectPreviousWorkItemButton
        {
            get
            {
                return OwnerScreen.Get<Button>("buttonPreviousWorkItem");
            }
        }
     
    }

}